class CreateDemand < ActiveRecord::Migration
  def change
    create_table :demands do |t|
      t.string :title
      t.string :description
      t.string :status, null: false, limit: 1
      t.integer :creator_id

      t.timestamps null: false
    end

    add_index :demands, :status
    add_index :demands, :creator_id
  end
end
